<?php
	class Default_Model_Slide extends Zend_Db_Table_Abstract
	{
		protected $_name = 'slide';
		protected $_primary = 'id';
		protected $_db;
		
		public function __construct()
		{
			$this->_db = Zend_Registry::get('db');
		}
        
        public function getListItem()
        {
            $sql = $this->_db->select()
                            ->from($this->_name, array('image'))
                            ->where('status = 1')
                            ->order('id DESC');
            $result = $this->_db->fetchAll($sql);
            return $result;
        }
    }
